package com.um.springboot.starter.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Title 通用枚举
 * @Description
 * @Author renjunwei
 * @Date 2021/12/22 3:15 PM
 */
public class CommonEnum {

    @Getter
    @AllArgsConstructor
    public enum YesOrNo {

        All("%","全部"),
        No("0","否"),
        Yes("1","是"),

        @Deprecated
        NO("0","否"),

        @Deprecated
        YES("1","是");

        @Deprecated
        private String key;

        private String value;

    }


    @Getter
    @AllArgsConstructor
    public enum IncomeOrExpend {

        Income("0","收入"),
        Expend("1","支出");

        private String key;
        private String value;

    }


    @Getter
    @AllArgsConstructor
    public enum DayOfWeek {

        Monday("1","周一"),
        Tuesday("2","周二"),
        Wednesday("3","周三"),
        Thursday("4","周四"),
        Friday("5","周五"),
        Saturday("6","周六"),
        Sunday("7","周日");


        private String key;
        private String value;

    }
}
